#include <iostream>
#include <memory>
#include "Task.hpp"
#include "ThreadPool.hpp"
int main()
{
    EnableConsoleLogStrategy();
    ThreadPool<task_t>::GetInstance();
    int cnt = 10;
    std::vector<task_t> task = {Print,Sync,Load,Upload};
    int i = 0;
    while(cnt--)
        ThreadPool<task_t>::GetInstance()->Enqueue(task[i++ % task.size()]);
    return 0;
    //结束时，智能指针自动管理
}